package com.bcdat.bcdatbrace.utils.vo;


import com.bcdat.bcdatbrace.utils.enums.ResultEnums;

/**
 * @Description: 返回对象实体
 * @author lsy
 * @date 2019-5-10
 */
public class ResultVO<T> {

   //"状态码"
   private Integer code;

   //"操作信息"
   private String msg;

   //"数据"
   private T data;

   public ResultVO<T> setCode(ResultEnums retCode) {
      this.code = retCode.getCode();
      return this;
   }

   public int getCode() {
      return code;
   }

   public ResultVO<T> setCode(int code) {
      this.code = code;
      return this;
   }

   public String getMsg() {
      return msg;
   }

   public ResultVO<T> setMsg(String msg) {
      this.msg = msg;
      return this;
   }

   public T getData() {
      return data;
   }

   public ResultVO<T> setData(T data) {
      this.data = data;
      return this;
   }

}
